import axios from '@/utils/request'

// 获取当前二维码状态
export function getAuthQrcode({ data }) {
  return axios({
    url: '/business_admin/verify/getAuthQrcode',
    method: 'post',
    data: data
  })
}

// 获取当前二维码状态
export function queryAuthState(params) {
  return axios({
    url: '/business_admin/verify/queryAuthState?qrcodeNo=' + params.qrcodeNo + '&sceneStr=' + params.sceneStr,
    method: 'get'
  })
}

// 鉴权
export function verifyAuthor(data) {
  return axios({
    url: '/business_admin/verify/verifyAuthor',
    method: 'post',
    data: data
  })
}

